﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Mvcmediaplayer.Validation
{
    public class VComment:IValidationModel
    { 
            [Required(ErrorMessage = "VideoId is required")]
            public object VideoId { get; set; }

            [Required(ErrorMessage = "User is required")]
            public object VUser { get; set; }

            [Required(ErrorMessage = "Subject is required")]
            [StringLength(100)]
            public object VSubject { get; set; }

            [Required(ErrorMessage = "Content is required")]
            [StringLength(500)]
            public object VContent { get; set; }
    }
}